package com.hyzx.qbasic.admin.model.vo.req.admin;

import com.hyzx.qbasic.admin.model.vo.req.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotEmpty;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created by 黄江华 on 2018/11/21
 */

@ApiModel
public class AddProcessConfigReq extends BaseRequest {

    @ApiModelProperty("流程配置key")
    @NotEmpty(message = "流程配置key不能为空")
    @Length(max = 64, message = "流程配置key不能超过64个字符")
    private String processConfigKey;

    @ApiModelProperty("流程分类")
    @NotNull(message = "流程分类不能为空")
    private Integer processCategoryId;

    @NotNull(message = "processDefinitionId不能为空")
    @Min(value = 1, message = "processDefinitionId必须大于0")
    private Integer processDefinitionId;

    @ApiModelProperty("流程配置描述")
    @Length(max = 200, message = "流程配置描述不能超过200个字符")
    private String description;

    public String getProcessConfigKey() {
        return processConfigKey;
    }

    public void setProcessConfigKey(String processConfigKey) {
        this.processConfigKey = processConfigKey;
    }

    public Integer getProcessCategoryId() {
        return processCategoryId;
    }

    public void setProcessCategoryId(Integer processCategoryId) {
        this.processCategoryId = processCategoryId;
    }

    public Integer getProcessDefinitionId() {
        return processDefinitionId;
    }

    public void setProcessDefinitionId(Integer processDefinitionId) {
        this.processDefinitionId = processDefinitionId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
